package com.designpatterns.command.control;

import com.designpatterns.command.command.Command;

/**
 * @author Brook
 */
public class SimpleRemoteControl {
    Command slot;

    public SimpleRemoteControl() {};

    public void setCommand(Command command) {
        slot = command;
    }

    public void buttonWasPressed() {
        slot.excute();
    }
}
